package com.ziwei.material.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: jl_zhang
 * @since: 2024/11/15 14:12
 **/
@Data
@TableName("sds_material_task_pic")
public class SdsMaterialTaskPic implements Serializable {
    private static final long serializableUID = 102471227135808044L;

    /**
     *  导入的url的id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *  批次id(任务id)
     */
    private Long taskId;

    /**
     *  图片标题
     */
    private String title;

    /**
     * 图片链接
     */
    private String picUrl;

    /**
     *  分析结果(0为进行中, 1为下载失败, 2为分析失败, 3为非原创, 4为原创)
     */
    private int analyseRes;

    /**
     *  图片状态(0为分析中,1为不可用, 2为可用)
     */
    private int status;

    /**
     * 操作用户id
     */
    private Long userId;

    /**
     *  下载后的url
     */
    private String ossUrl;

    @Override
    public String toString() {
        return "SdsMaterialTaskPic{" +
                "id=" + id +
                ", taskId=" + taskId +
                ", title='" + title + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", analyseRes=" + analyseRes +
                ", status=" + status +
                ", userId=" + userId +
                ", ossUrl='" + ossUrl + '\'' +
                '}';
    }
}
